package com.hshx.client;


import com.hshx.VO.RecordVo;
import com.hshx.pojo.Record;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "gateway",
        path = "/zhaopingService",
        contextId = "RecordClient")
public interface RecordClient {

    //S I U D

    @RequestMapping("/getAllRecord")
    List<Record> getAllRecord();    //#1-1、通过查询档案表，查出来简历编号，查询后，循环拿到简历编号去查询简历表

    @RequestMapping("/getOneRecord")
    RecordVo getOneRecord(int record_Id);

    @RequestMapping("/addRecord")
    boolean addRecord(@SpringQueryMap Record record);

    @RequestMapping("/updRecord")
    boolean updRecord(int record_id,int record_using);

    @RequestMapping("/delByRecord")
    boolean delByRecord(int record_id);


}
